<template>
  <el-autocomplete
    class="inline-input"
    v-model="userName"
    :fetch-suggestions="querySearch"
    :placeholder="placeholder"
    @select="handleSelect">
  </el-autocomplete>
</template>
<style>

</style>
<script>
    export default {
      props: ['options', 'placeholder'],
      data () {
        return {
          userName: '',
          msg: 'hello vue'
        }
      },
      methods: {
        handleSelect () {

        },
        querySearch (queryString, cb) {
          cb([{value: '111111', name: 'test'}, {value: '222222'}, {value: '3333333'}])
        }
      }
    }
</script>
